package com.shy.springframework.aop;

/**
 * @author yzpang
 * @desc: 目标包装类
 * @date: 2023/2/10 14:03
 */
public class TargetSource {
    private Object target;

    public TargetSource(Object target) {
        this.target = target;
    }

    public Object getTarget() {
        return target;
    }

    /**
     * 返回目标类接口列表
     * @return
     */
    public Class<?>[] getTargetClass(){
        return this.target.getClass().getInterfaces();
    }
}
